package org.jeecg.modules.water.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.water.entity.LwgyJointWaterCmd;
import org.jeecg.modules.water.mapper.LwgyJointWaterCmdMapper;
import org.jeecg.modules.water.service.ILwgyJointWaterCmdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 阀控记录
 * @Author: jeecg-boot
 * @Date:   2024-03-11
 * @Version: V1.0
 */
@Service
public class LwgyJointWaterCmdServiceImpl extends ServiceImpl<LwgyJointWaterCmdMapper, LwgyJointWaterCmd> implements ILwgyJointWaterCmdService {
    @Autowired
    private LwgyJointWaterCmdMapper lwgyJointWaterCmdMapper;

    @Override
    public List<LwgyJointWaterCmd> selectByMainId(String mainId) {
        return lwgyJointWaterCmdMapper.selectByMainId(mainId);
    }

    @Override
    public IPage<LwgyJointWaterCmd> queryJointWaterCmdList(Page<LwgyJointWaterCmd> page, QueryWrapper<LwgyJointWaterCmd> queryWrapper) {
        return page.setRecords(lwgyJointWaterCmdMapper.queryJointWaterCmdList(page,queryWrapper));
    }
}
